<?php
namespace System\Core;

class Controller {
    protected function view($view, $data = []) {
        return View::render($view, $data);
    }
    
    protected function json($data, $statusCode = 200) {
        return Response::json($data, $statusCode);
    }
    
    protected function redirect($url) {
        header('Location: ' . $url);
        exit;
    }
}